home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Documents / NeXTSTEP-faq / 4_MiscInfo.txt < prev    next >
Text File  |  1996-04-17  |  42KB  |  1,160 lines

  1.  
  2. Subject: FAQ: 4 - Miscellaneous Information
  3.  
  4.  
  5.                          4 MISCELLANEOUS INFORMATION
  6.  
  7.    Misc Various Unsorted
  8.  
  9. 4.1 How do I get pictures of people from remote sites to appear in Mail.app and
  10. NewsGrazer?
  11.  
  12.    Pictures, in Mail Pictures, in NewsGrazer Mail, remote Pictures
  13.    Newsgrazer, remote Pictures
  14.  
  15.    You can do this in the following ways.
  16.  
  17.      * Mail In /LocalLibrary/Images/People put a tiff (64x64) in the form
  18.        of person@remote.site.domain.tiff (all lowercase). In
  19.        /LocalLibrary/Images/People/passwd add an entry for the person:
  20.  
  21.  
  22.         person@remote.site.domain:*:-2:-2::/nodir:/noshell
  23.  
  24.  
  25.        (person and sitename need to be all lowercase as well) In the
  26.        future anytime you get mail from the person their picture should
  27.        appear.
  28.  
  29.        You can include an "aliases" file in /LocalLibrary/Images/People
  30.        too. This allows you to use the same picture for somebody that
  31.        might send you mail from accounts on many different sites, or for
  32.        those people whose letters use several different routings.
  33.  
  34.        To do this, you include entries in this local aliases file like
  35.        so:
  36.  
  37.  
  38.         bkohler@ucrac1.ucr.edu:bkohler.gonzo.ucr.edu
  39.         gonzo.ucr.edu!bkohler@uupsi2.uucp:bkohler.gonzo.ucr.edu
  40.  
  41.  
  42.        There should then be a .tiff file called
  43.        bkohler.gonzo.ucr.edu.tiff.
  44.  
  45.        There can be no CAPITAL LETTERS in this file. So even if the
  46.        address in the From: field looks like
  47.        gonzo.ucr.edu!bkohler@uupsi2.UUCP, keep the letters lowercase in
  48.        the aliases file. As always, you have to restart Mail before these
  49.        changes take effect.
  50.  
  51.      * NewsGrazer
  52.  
  53.        In /LocalLibrary/NewsGrazer/People put a tiff (64x64) in the form
  54.        of person.remote.site.domain (all lowercase). This is a different
  55.        naming convention from what Mail uses.
  56.  
  57.        There is a large archive of some 4000 or 5000 pictures prepared
  58.        for this purpose. The name of this archive is Faces3.tar.Z and it
  59.        is about 4.1 MBytes large. Currently it is available from several
  60.        anonymous ftp sites (e.g. sonata.cc.purdue.edu in:
  61.        /pub/next/graphics/Images/icons/people)
  62.  
  63.        That image archive also contains a script which automatically
  64.        creates proper alias and passwd files.
  65.  
  66.  
  67. 4.2 How to manipulate and examine default settings
  68.  
  69.      * A command line utility for examining defaults is available from:
  70.        sutro.sfsu.edu:/pub/wmdefaults1.0.tar.Z
  71.  
  72.      * A PD App, DefaultMgr.app, is available on the NeXT ftp archives.
  73.  
  74.      * A more brute approach (done by DefaultMgr.app):
  75.  
  76.        Start the application under gdb, and then try the following
  77.        sequence of commands:
  78.  
  79.  
  80.         break  *0x500976a
  81.         commands 1
  82.         silent
  83.         printf "%s: ", *$a2
  84.         output {char *}(4+$a2)
  85.         echo \n
  86.         cont
  87.         end
  88.         run
  89.  
  90.  
  91.    [Carl Edman ] adds:
  92.  
  93.    DefaultMgr.app doesn't any longer work properly under 3.0. It still is
  94.    able to manipulate defaults but can't any longer "investigate" apps to
  95.    find out which defaults they use.
  96.  
  97.    [eps@toaster.SFSU.EDU (Eric P. Scott)] adds:
  98.  
  99.    Needs to be revised for 3.x systems. wmdefaults is only for 2.x; it's
  100.    not needed for 3.0 and later.
  101.  
  102. 4.3 How do I run NextApps remotely?
  103.  
  104.    Remote running
  105.  
  106.    On the local machine make sure you have public window server access,
  107.    this is set from the Preferences application. On the foreign NeXT
  108.    machine run the application from a terminal window with the -NXHost .
  109.    Both machines should be running the same version of NeXTstep.
  110.  
  111.    [shayman@Objectario.com (Steve Hayman)]
  112.  
  113.    NeXTSTEP 3.1 and higher includes a demo application called OpenSesame
  114.    that simplifies this. You can select a program in Workspace and use >
  115.    Service > Open Sesame > Open on Another Host ...to launch a program on
  116.    a remote machine. This is a way to run old, non-fat-binary software on
  117.    new NeXTSTEP/Intel machines.
  118.  
  119. 4.4 Why does UUCP hangs on outgoing connections after sending the password, but
  120. other communications software do not have a problem with it?
  121.  
  122.    UUCP
  123.  
  124.    What is happening is that the remote machine is waiting for you to end
  125.    your login or password by typing a "Return" (aka &Mcirc; or CR or
  126.    CARRIAGE RETURN). UUCP ends a line by sending a LineFeed (aka Ĵ
  127.    or LF). Since UUCP doesn't send the CR, the login sequence is never
  128.    completed, and you will usually get one of two error messages:
  129.  
  130.  
  131.         wanted "password:" (means that username needs to end with a CR)
  132.         imsg waiting for SYNC< (means that password needs to end with CR)
  133.  
  134.  
  135.    So how do you get UUCP to send CR, instead of LF?
  136.  
  137.    End the send string with the sequence
  138.    n
  139.    c. For instance this line in L.sys will send a LF after login, but a
  140.    CR after password.
  141.  
  142.  
  143.         myfeed Any DIR 9600 cub "" ATTD19095551212 9600 \
  144.         "" ogin:--ogin: Unext ssword: secret\n\c
  145.  
  146.  
  147. 4.5 How do I access the NeXT's Digital Webster Dictionary from a program?
  148.  
  149.    Webster
  150.  
  151.    Get Jiro Nakamura's define program from the archiver servers:
  152.    define.tar.Z. This will allow you to access the database from the
  153.    command line. This program breaks under 3.x. For 3.x there are two
  154.    other programs which might be useful: Webster.a5 and websterd.
  155.  
  156. 4.6 How do I get the arrow keys to work in csh?
  157.  
  158.    csh, arrow keys
  159.  
  160.    This is for people who use a terminal app that does vt100 keyboard
  161.    emulation - pasc
  162.  
  163.    First, add these lines to your .cshrc (preferably between the if and
  164.    endif):
  165.  
  166.  
  167.         set editmode=emacs
  168.         set macrofiles=.macros
  169.  
  170.  
  171.    Then create a file called .bindings and put in it:
  172.  
  173.  
  174.         bind-to-key ExecuteNamedMacro '\e['
  175.  
  176.  
  177.    And, next, you need to make a file called ".macros". Using an editor
  178.    like emacs (which can insert control characters using a &Qcirc;
  179.    prefix), into this file put:
  180.  
  181.  
  182.         A^@^@^@^A^P
  183.         B^@^@^@^A^N
  184.         C^@^@^@^A^F
  185.         D^@^@^@^A^B
  186.  
  187.  
  188.    where &@circ; means Control-@ and  means Control-A, etc. Also, don't
  189.    put in the leading spaces. This will set up the left and right arrows
  190.    to move back and forth on the line, and the up and down arrows will
  191.    cycle through your history.
  192.  
  193.    On Intel machines these sequences are a little different:
  194.  
  195.  
  196.         A^A^@^@^@^P
  197.         B^A^@^@^@^N
  198.         C^A^@^@^@^F
  199.         D^A^@^@^@^B
  200.  
  201.  
  202.    Then source .cshrc and the changes should take effect.
  203.  
  204. 4.7 What default affects menu location?
  205.  
  206.    Menu, location Do the following.
  207.  
  208.  
  209.         dwrite GLOBAL NXMenuX <value>
  210.         dwrite GLOBAL NXMenuY <value>
  211.  
  212.  
  213. 4.8 How to get Gourmet to boot up the Mathematica 2.0 kernel?
  214.  
  215.    Mathematica
  216.  
  217.    Login as root, or get root privileges running su, and execute the
  218.    following five commands:
  219.  
  220.  
  221.         mkdirs /NextApps/Mathematica.app/Kernel/NeXT
  222.         cd /NextApps/Mathematica.app/Kernel
  223.         ln -s uuuuu/Mathematica.app/Kernel/Display Utilities
  224.         cd NeXT
  225.         ln -s vvvvv/math mathexe
  226.  
  227.  
  228.    where uuuuu is the directory where Mathematica was placed (typically,
  229.    /LocalApps) and vvvvv is the directory where the executable math was
  230.    placed (typically, /usr/local/bin)
  231.  
  232. 4.9 Manipulating the Loginwindow
  233.  
  234.    loginwindow dwrites
  235.  
  236.    There are some for loginwindow:
  237.  
  238.    [Jess Anderson writes:]
  239.  
  240.    Here, I hope, is the quasi-definitive story on dwrites that affect the
  241.    loginwindow. I'm indebted to several people, notably Art Isbell,
  242.    Kristian Koehntopp, Dan Danz, Louie Mamakos, John Kheit, Felix Lugo,
  243.    and Paul Sears, for some of the information presented here.
  244.  
  245.    Remember that dwrites are not supported by NeXT; they may change with
  246.    any subsequent system release. These I've checked out using 3.0; some
  247.    or all may work with earlier releases, but I can't vouch for most of
  248.    them.
  249.  
  250.    All these dwrites must be done as root. You can also run as root and
  251.    use DefaultMgr to set them (which is a whole lot more convenient if
  252.    you're intending to fiddle with some of them).
  253.  
  254.    After setting the things you want, restart the WindowServer by logging
  255.    out of the current session and typing exit on the login panel.
  256.  
  257.    OK, here's what we know (or think we do :-):
  258.  
  259.  
  260.         dwrite loginwindow DefaultUser <login-name>
  261.  
  262.  
  263.    Most new machines have set to me. This dwrite logs in user
  264.    automatically. User must not have a password set, hence don't use this
  265.    in a networked environment!
  266.  
  267.  
  268.         dwrite loginwindow HostName "<host_name>"
  269.         dwrite loginwindow HostName localhost
  270.  
  271.    These cause your host name to appear on the login panel. You need
  272.    quote marks only if there's a space in the name. The first form
  273.    hard-codes the name into root's defaults database. The second form
  274.    uses whatever name has been set as localhost in NetInfo, which is
  275.    convenient for networked machines.
  276.  
  277.    The font, size, color, and position of the printed string are not
  278.    accessible (drat!).
  279.  
  280.  
  281.         dwrite loginwindow ImageFile <path/to/a/suitable.tiff>
  282.  
  283.  
  284.    This uses the tiff image pointed to instead of the standard one (in
  285.    /usr/lib/NextStep/loginwindow.app/English.lproj/nextlogin.tiff, .lproj
  286.    as appropriate for your main language) as the login panel. Be sure you
  287.    get the pointer right, though, or you'll have to boot single-user to
  288.    fix it. In practical terms, the image is constrained in various ways I
  289.    won't detail here.
  290.  
  291.  
  292.         dwrite loginwindow TimeToDim <integer_number>
  293.  
  294.  
  295.    No relation to the dim time set by Preferences. The units are odd, I
  296.    think. Felix reported them as 1/34 second. However, when I changed it
  297.    to 1020, I got 15 seconds to dimming, and 680 gives 10 seconds, that
  298.    I'm sure of. So I think the units are 1/68 second. Maybe Felix just
  299.    thought it was too damn long! We all know it seems longer when you're
  300.    not having fun waiting. :-) Whatever, the login screen dims to about
  301.    half after this length of time.
  302.  
  303.  
  304.         dwrite loginwindow MoveWhenIdle YES
  305.  
  306.  
  307.    This causes the panel to move around approximately in Backspace
  308.    bouncing-off-the-walls-tiff fashion. The point is to avoid burning the
  309.    screen phosphors, as a static image would tend to do. The animation is
  310.    controlled by the next couple dwrites.
  311.  
  312.  
  313.         dwrite loginwindow MovementTimeout <real_number>
  314.  
  315.  
  316.    The units are seconds. The panel starts moving (assuming the preceding
  317.    is set to YES) after this time. If you set it to be less than the
  318.    TimeToDim time, the movement starts before the dimming occurs. I did
  319.    not try zero. I can't stand waiting around for things to happen, so I
  320.    use 10 seconds for both times. The default appears to be 5 minutes.
  321.  
  322.  
  323.         dwrite loginwindow MovementScale <integer_number>
  324.  
  325.  
  326.    No movement occurs if this is set to 1. But it looks like the units
  327.    might be approximately pixels for each change of position (the
  328.    frequency of which is controlled by the next dwrite). If you put a big
  329.    number here, say 200, the image moves in big jumps, but I don't know
  330.    if the 200 is divided up somehow between change in x- and
  331.    y-coordinates. I wouldn't worry about it much, just set it to
  332.    something you like. Since my image contains readable text, I want it
  333.    to scroll smoothly around, so I use the apparently minimum value, 2.
  334.    The default appears to be 10.
  335.  
  336.  
  337.         dwrite loginwindow MovementRate <real_number>
  338.  
  339.  
  340.    The units are seconds. The image jumps by the amount above every this
  341.    many seconds. The default is 0.0666 seconds. Bigger numbers mean
  342.    slower motion. Since I don't like things being too jumpy or zooming
  343.    around, I set this to 0.1 seconds. This makes my image ooze at a pace
  344.    befitting an elderly person like me.
  345.  
  346.  
  347.         dwrite loginwindow PowerOffDisabled YES
  348.  
  349.  
  350.    This makes it a little harder to turn the machine off; you have to use
  351.    the monitor or the minimonitor (- ) if it's set, rather than the key.
  352.  
  353.  
  354.         dwrite loginwindow LoginHook <path/to/loginhook/executable>
  355.         dwrite loginwindow LogoutHook <path/to/logouthook/executable>
  356.  
  357.  
  358.    Pointers to the login and logout hooks, if used. It should be pointed
  359.    out that some of these things (login/logout hooks, for example) are
  360.    maybe more logically set where the loginwindow is invoked by the
  361.    WindowServer, namely /etc/ttys.
  362.  
  363.    There are yet others. Here's the full list (thanks, Art):
  364.  
  365.  
  366.         NXGetDefaultValue("loginwindow", "DebugHook") => 0x0
  367.         NXGetDefaultValue("loginwindow", "DryRun") => 0x0
  368.         NXGetDefaultValue("loginwindow", "WindowServerTimeout") => 0x0
  369.         NXRegisterDefaults("loginwindow", 0x16024)
  370.         KeyMapPath: 0x12d97
  371.         "~/Library/Keyboards:/LocalLibrary/Keyboards:/NextLibrary/Keyboards"
  372.         Keymap: 0x12de1 "/NextLibrary/Keyboards/USA"
  373.         SwappedKeymap: 0x12e0a "No"
  374.         LoginHook: 0x0
  375.         LogoutHook: 0x0
  376.         HostName: 0x0
  377.         ImageFile: 0x0
  378.         DefaultUser: 0x12e41 "me"
  379.         PowerOffDisabled: 0x0
  380.         TimeToDim: 0x12e69 "2040"
  381.         MoveWhenIdle: 0x12e0a "No"
  382.         MovementTimeout: 0x12e8b "300.0"
  383.         MovementRate: 0x12e9e "0.06666"
  384.         MovementScale: 0x12eb4 "10"
  385.  
  386.  
  387.    [Christopher J. Kane kane@cs.purdue.edu]
  388.  
  389.    Under NeXTSTEP 3.1, the login window has two buttons labeled "Reboot"
  390.    and "Power" that allow a user to reboot and power down from the login
  391.    window. In a public lab, this feature may be undesirable. The
  392.    PowerOffDisabled default can be used to disable the buttons, but they
  393.    are still shown in the window and push in when clicked (a bad user
  394.    interface decision, IMHO).
  395.  
  396.    The program below patches loginwindow to eradicate the restart and
  397.    power buttons. It makes the loginwindow's LoginButton class instance
  398.    method initWithImage:altImage:andString: a no-op (just return nil).
  399.    This patch has been applied to the machines in the NeXT lab at Purdue
  400.    (like sonata.cc.purdue.edu for instance), and no adverse effects have
  401.    been noted.
  402.  
  403.    This program must be run as root, since it writes to the file
  404.    /usr/lib/NextStep/loginwindow.app/loginwindow.
  405.  
  406.    An archive with a compiled executable has been submitted to
  407.    sonata.cc.purdue.edu.
  408.  
  409.  
  410.         /*
  411.          * Patches the loginwindow.app to eradicate the restart and power
  412.          * buttons from the login window.
  413.          *
  414.          * Christopher J. Kane (kane@cs.purdue.edu)
  415.          * Released into public domain; August 13, 1993.
  416.          */
  417.  
  418.         #include <libc.h>
  419.         #include <errno.h>
  420.  
  421.         void main(int argc, char *argv[])
  422.         {
  423.           unsigned char patch[8] = {0x0, 0x0, 0x42, 0x80, 0x4e, 0x5e, 0x4e,
  424.           0x75};
  425.         int file = open("/usr/lib/NextStep/loginwindow.app/loginwindow",
  426.         O_WRONLY);
  427.           if (-1==file)
  428.             goto error;
  429.           if (-1==lseek(file, 21170, SEEK_SET))
  430.             goto error;
  431.           if (-1==write(file, patch, 8))
  432.             goto error;
  433.           if (-1==close(file))
  434.             goto error;
  435.           exit(0);
  436.         error:
  437.           fprintf(stderr, "%s: %s\n", argv[0], strerror(errno));
  438.           exit(1);
  439.         }
  440.  
  441.  
  442.    FAQ-Authors note: We strongly recommend to do a backup of the
  443.    loginwindow application, because the patch alters the file directly
  444.    and will most likely not work on different versions of the OS.
  445.  
  446. 4.10 How does one set UNIX man pages to be viewed in nroff format with DL like
  447. the standard manual pages in NS2.x?
  448.  
  449.    man pages, NS2.x
  450.  
  451.    Beyond looking in the man pages under ixBuild, etc., what you want to
  452.    do is put a few files (contents listed below file name) the .index
  453.    directory:
  454.  
  455.  
  456.         .roffArgs:
  457.         -man
  458.  
  459.         displayCommand:
  460.         tbl %s | nroff -man
  461.  
  462.         ixBuildOptions:
  463.         -fman -Nwhatis -Ncat[1-8ln] -V
  464.  
  465.  
  466.    Other options that people suggested for ixBuildOptions:
  467.  
  468.  
  469.         -fman -Nwhatis -Ncat[1-8] -V /usr/local/man
  470.         -fman -Nwhatis -V /usr/local/man/man*
  471.  
  472.  
  473.    I don't think you need to explicitly name the directory in the first
  474.    alternative, but you do in the second unless you want the cat*
  475.    directories indexed as well.
  476.  
  477.    Note: Do NOT leave a trailing return after the line in ixBuildOptions;
  478.    DL will barf. (I think someone said that, as shipped, the standard man
  479.    .index/ixBuildOptions had this problem.)
  480.  
  481.    [From: Eric D. Engstrom ]
  482.  
  483.    Can anyone tell me what the command line for this might be under
  484.    NEXTSTEP 3.0?
  485.  
  486.    Short answer: RTM on ixbuild(1) - specifically the parameter "-g".
  487.  
  488.    In addition, I'd like to inform the newsgroup of a simple hack I setup
  489.    on my own machine to create a unified DL target for all UNIX Manual
  490.    pages (including system, local, gnu, whatever). This was easier under
  491.    2.x because IXBuild (pre IXKit) had more hacks in it...
  492.  
  493.    Basically, you need to setup a directory with sym-links to the various
  494.    man-page directories; For example:
  495.  
  496.  
  497.         (397)basilisk% pwd
  498.         /LocalLibrary/Documentation/ManPages
  499.         (398)basilisk% ls -alg
  500.         total 728
  501.         drwxrwxr-x  2 eric     wheel       1024 Mar 28 18:03 ./
  502.         drwxrwxr-x 11 root     wheel       1024 Mar 27 00:41 ../
  503.         -rw-r--r--  1 eric     wheel        370 Feb 27 22:01 .README
  504.         -rw-rw-r--  1 eric     wheel        872 Feb 27 17:11 .dir.tiff
  505.         -rw-rw-r--  1 eric     wheel         20 Feb 27 17:11 .displayCommand
  506.         -rw-rw-r--  1 eric     wheel         47 Feb 27 17:10 .index.iname
  507.         -rw-rw-r--  1 eric     wheel          6 Feb 27 17:10 .index.itype
  508.         -rw-r--r--  1 eric     wheel     729088 Mar 28 18:44 .index.store
  509.         -rw-rw-r--  1 eric     wheel          5 Feb 27 17:11 .roffArgs
  510.         lrwxrwxrwx  1 eric     wheel         18 Feb 27 17:53 gnu ->
  511.         /usr/local/gnu/man/@
  512.         lrwxrwxrwx  1 eric     wheel         14 Feb 27 17:53 local ->
  513.         /usr/local/man/@
  514.         lrwxrwxrwx  1 eric     wheel          9 Feb 27 17:53 news ->
  515.         /news/man/@
  516.         lrwxrwxrwx  1 eric     wheel         35 Feb 27 17:53 system ->
  517.         /usr/man/@
  518.  
  519.  
  520.    Notice that I also copied all the .[a-z]* files from the /usr/man/
  521.    directory as well.
  522.  
  523.    Then, use ixbuild -gl to (re)build the index. If your any of the links
  524.    point to directories on other devices, add "d" to "-gl". "-v" will
  525.    give you verbose output (like my writing style ;-). RTM under
  526.    ixbuild(1) for more info.
  527.  
  528.    Unfortunately, once the index is built, I've never successfully gotten
  529.    DL to update it correctly. Instead I have to do it by hand using
  530.    ixbuild -ogldvc (actually, I setup a cron job to reindex weekly.)
  531.  
  532.    If you have troubles, try removing the .index.store file and
  533.    rebuilding the entire database. I've had intermittent problems with
  534.    ixbuild under 3.0.
  535.  
  536. 4.11 Appending a signature and addition headers to your e-mail
  537.  
  538.    .signature signature Mail
  539.  
  540.    There is a bundle for Mail to which, beside other features, allows you
  541.    to add a .signature file to outgoing e-mails: EnhancedMail.bundle.
  542.    This software package is available by the FTP archive sites.
  543.  
  544.    Here are other solutions which might serve you as well:
  545.  
  546.    [Carl Edman ]
  547.  
  548.    First create a simple text file the following content:
  549.  
  550.  
  551.         #!/bin/sh
  552.         {
  553.         if test -r ${HOME}/.add-header; then cat ${HOME}/.add-header; fi
  554.         cat -
  555.         if test -r ${HOME}/.signature; then echo "--"; cat ${HOME}/.signature;
  556.         fi
  557.         }| /usr/lib/sendmail "$@"
  558.  
  559.  
  560.    A good name for this file would be sendmail-addheader. If you want to
  561.    and can install it for system-wide use put this file in e.g. /usr/lib.
  562.    Otherwise your private /Unix/bin directory is also fine. Make certain
  563.    that this file has execute permission. To set that, use e.g. chmod 755
  564.    /usr/lib/sendmail-addheader.
  565.  
  566.    Next, open up the preferences panel in Mail. Switch to the expert
  567.    options. Change the Mailer option from /usr/lib/sendmail (which it
  568.    should originally be) to /usr/lib/sendmail-addheader (or whatever the
  569.    name of the file you created is). OK this and you should be set.
  570.  
  571.    From now on your file /.signature file should always be appended to
  572.    all mail sent out with Mail.app. In addition if you have a file called
  573.    add-header in your home-directory it should automatically be prepended
  574.    to your outgoing mail. To implement a reply-to line, you would simply
  575.    give it the following content:
  576.  
  577.  
  578.         Reply-to: My Real Human Name <name@my.real.address>
  579.  
  580.  
  581.    IMPORTANT: Make certain that you have one and exactly one newline at
  582.    the end of /.add-header. Anything might break outgoing mail. Beware!
  583.  
  584.    BUG: The /.signature file is not added properly for NeXT mail
  585.    containing attachments. The headers will still be added properly. This
  586.    could be fixed but probably is more of a hassle than it is worth.
  587.  
  588.    [From: jbrow@radical1.radical.com (Jim Brownfield)]
  589.  
  590.    I have added a Terminal Service to terminal to add a signature file
  591.    whenever I type "0" (command/zero), and I thought this might be of
  592.    interest to people who read your FAQ. I have used this technique for
  593.    over a year with no problems, and it has the advantage of working both
  594.    with non-NeXT and NeXT Mail.
  595.  
  596.    First, you must create a file with your signature containing the
  597.    characters "--" on the first line (there has been some discussion as
  598.    to whether this should be "-- " ("--" followed by a blank), but my
  599.    file only has the "--" as the first line. The rest of the file should
  600.    contain your normal signature. If you place the file in your home
  601.    directory, I recommend NOT using the filename ".signature" for this
  602.    file since it may conflict with other programs (like NewsGrazer). I
  603.    use the filename ".fullSignature". The file used for the signature
  604.    should be ascii and not RTF to allow the file to be used for NeXT and
  605.    non-NeXT mail.
  606.  
  607.    You can create a "Get signature" service by launching Terminal and
  608.    accessing the "Terminal Services" window through the "Info/Terminal
  609.    Services..." menu item. Then perform the following:
  610.  
  611.     1. Create a new service by clicking on the "New" button. Change the
  612.        service name to "Get signature".
  613.     2. Add the command "cat " and "0" (zero) to the "Command and Key
  614.        Equivalent" entry. The "0" is obviously arbitrary, but I've found
  615.        that it doesn't conflict with any of the commands I normally use.
  616.     3. De-select any items checked within the "Accept" grouping. Select
  617.        the "As Input" radio button under the "Use Selection" section.
  618.     4. Change the "Execution" popup to "Run Service in the Background".
  619.        Select the "Return Output" and "No Shell" radio buttons.
  620.     5. Click the "Save" button.
  621.  
  622.  
  623.    Now, when you type "0" (actually, from any application), your
  624.    signature will be added wherever your cursor is located (be careful
  625.    not to have text selected as it will replace the selected text with
  626.    your signature). I have found this to be very convenient for adding my
  627.    .sig to outgoing mail.
  628.  
  629. 4.12 How can I quickly find a file if I don't know its directory?
  630.  
  631.    searching, files find
  632.  
  633.    The Unix find command on the NeXT has the capability of quickly
  634.    searching a database of all the files. This database is located in
  635.    /etc/find.codes and has to be generated periodically. You can
  636.    automatically generate this database, say twice a week at 3:15 a.m.,
  637.    by adding this line to your file /etc/crontab.local (you might have to
  638.    create this file).
  639.  
  640.  
  641.         15 03 * * 2,5 root      /usr/lib/find/updatedb > /usr/adm/updatedb.err
  642.  
  643.  
  644.    After this has run, you can quickly find any file from a terminal by
  645.    typing find where is a part of the file name you want (it is
  646.    case-sensitive).
  647.  
  648.    [Carl Edman ] adds:
  649.  
  650.    Find still works under 3.0, but now has to match the entire filename
  651.    (including the path) for a match to be recognized i.e. where under 2.x
  652.    you would have find foobar, under 3.0 you have find '*foobar*' (The '
  653.    are necessary to prevent the shell from expanding the wildcards
  654.    itself).
  655.  
  656.    [From: Geert Jan van Oldenborgh ]
  657.  
  658.    I find the following script in /usr/local/bin very handy to bring back
  659.    the behavior that God Intended find to have:
  660.  
  661.  
  662.         #!/bin/csh
  663.         if ( $#argv == 1 ) then
  664.         /usr/bin/find \*$1\*
  665.         else
  666.         set noglob
  667.         /usr/bin/find $argv[1-]
  668.         unset noglob
  669.         endif
  670.  
  671.  
  672. 4.13 Mail.app suddenly stopped working!
  673.  
  674.    Mail, doesn't start
  675.  
  676.    When I double-click the Mail.app icon it loads and seems to start but
  677.    then just terminates. How can I fix this ?
  678.  
  679.    Usually the problem is caused by Mail.app being terminated with
  680.    extreme prejudice such as by a power outage or kill -9. Under those
  681.    circumstances Mail.app may leave a lock file in your active mailbox.
  682.    Due to a bug 3.0 Mail.app doesn't ask for permission to override this
  683.    lock when started up again but just dies. Open a shell and look in
  684.    /Mailboxes/Active.mbox. If this directory contains a file called .lock
  685.    you have found the culprit. You can safely remove this file.
  686.  
  687. 4.14 Recycler doesn't work anymore?!
  688.  
  689.    Recycler
  690.  
  691.    For some reason, after moving my home directory, my recycler no longer
  692.    works?
  693.  
  694.    [From: eric%basilisk@src.honeywell.com (Eric D. Engstrom)]
  695.  
  696.    Basically, when you dump a file in the recycler, the workspace manager
  697.    (attempts) to move it to one of the following locations:
  698.  
  699.    (note: no order implied here, because I'm unsure of the actual order
  700.    used)
  701.  
  702.  
  703.         - $HOME/.NeXT/.NextTrash
  704.                 (Should always exist; unsure what happens if it doesn't)
  705.  
  706.         - /tmp/.NextTrash_$USER
  707.                 Automatically created if non-existent)
  708.  
  709.         - $MNT-POINT/.NextTrash/$USER
  710.                 (.NextTrash NOT automatically created if non-existent)
  711.  
  712.  
  713.    Also, the workspace requires that the trash directory into which it
  714.    puts the to-be-deleted file be on the same disk partition that the
  715.    file originally came from (for speed, I assume).
  716.  
  717.    Also, an example of the permissions for the external disk .NextTrash
  718.    directory (which is not automatically created) should be :
  719.  
  720.  
  721.         ls -aldg  /private/mnt2/local/.NextTrash
  722.         drwxrwxrwt [...] /private/mnt2/local/.NextTrash/
  723.  
  724.  
  725.    Note: /private/mnt2/local is the mount point. Do chmod 1777 .NextTrash
  726.    to get the permissions right.
  727.  
  728.    Thus, if you moved your home directory from one partition to another,
  729.    the one you left may not have a "recycler-repository" to use.
  730.  
  731. 4.15 How to hear sound from CDPlayer.app thought NEXTSTEP system?
  732.  
  733.    digital audio CDPlayer
  734.  
  735.    To hear sound, the following info is important.
  736.  
  737.    [Carl Edman ]
  738.  
  739.    Hearing the sound directly on the NeXT can be done with the play3401
  740.    program from the archives if you have a Toshiba 3401 series drive.
  741.    Theoretically this can also be done with NEC [78]4-1s and Apple CD
  742.    300s, though I know of no NeXT program which supports them. Most other
  743.    drives (including the NeXT CD-ROM) just don't have the hardware to do
  744.    it.
  745.  
  746.    There is another player available: CD_evil, which is based on play3401
  747.    but offers a GUI.
  748.  
  749.    FAQ-Authors note: On Intel system it's very easy: just connect the
  750.    CD-Audio out (internal) to your CD-in of the soundcard (internal).
  751.  
  752.    Anyway there are problems with different drives. E.g. we know, that
  753.    the Toshiba, Sony and Nec drives currently use the same instruction
  754.    set to access audio data. So be aware that there are drives which
  755.    simply can't be accessed through CDPlayer.
  756.  
  757. 4.16 How do I decompress a file with the extension .compressed?
  758.  
  759.    .compressed compress uncompress gnutar tar gzip gunzip
  760.  
  761.    Do this with the following methods.
  762.  
  763.    [From: sanguish@digifix.com]
  764.  
  765.    .compressed files have been compressed in the Workspace Manager.
  766.    Basically, they are just .tar.Z files. Even single files are tarred as
  767.    well as compressed. There are several methods of decompressing these
  768.    files.
  769.     1. They can be decompressed by selecting them in the Workspace, and
  770.        Selecting uncompress from the file menu.
  771.     2. They can be decompressed by selecting them in the Workspace, and
  772.        bringing up the Workspace Inspector. (You can double click to get
  773.        there faster)
  774.     3. You can rename them to be .tar.Z and handle them the way you do
  775.        them.
  776.  
  777.  
  778.    FAQ-Authors note: use uncompress to access the .Z files and/or gunzip
  779.    to access .z/.gz files. Use tar to access .tar files. You might also
  780.    you gnutar to access both together, e.g. to access a .tar.gz
  781.  
  782.    at once. Read the man pages for more information.
  783.  
  784. 4.17 How do I change the Workspace compression app?
  785.  
  786.    compress gzip gunzip dwrites
  787.  
  788.    Change it with the given method.
  789.  
  790.    [Stephen Peters ]
  791.  
  792.    You can change the tools that the Workspace uses to create and read
  793.    its .compressed files by issuing the following commands in a terminal
  794.    window:
  795.  
  796.  
  797.         dwrite Workspace compress /usr/bin/gzip
  798.         dwrite Workspace uncompress /usr/bin/gunzip
  799.         dwrite Workspace AlwaysTarForCompress YES
  800.  
  801.  
  802.    [Reuven M. Lerner reuven@the-tech.mit.edu]
  803.  
  804.    This is generally a good thing, except that people might follow your
  805.    advice and then try to send NeXTmail to someone who is still using
  806.    compress/uncompress. Changing Workspace/uncompress to gunzip isn't a
  807.    problem, since it uncompresses all sorts of files, but people should
  808.    be very careful not to change Workspace/compress to gzip unless they
  809.    will only be dealing with other gzip-equipped users.
  810.  
  811. 4.18 console: loginwindow: netinfo problem - No such directory.
  812.  
  813.    netinfo problem, /keyboard directory is missing. It's benign... but
  814.    annoying.
  815.  
  816.  
  817.         niutil -create . /keyboard
  818.  
  819.  
  820.    Fixed in 2.1 and up.
  821.  
  822. 4.19 Root login not possible on client machine
  823.  
  824.    root login
  825.  
  826.    A number of people have complained about the situation where root can
  827.    log onto the configuration server, but not its clients. Login proceeds
  828.    normally, then a window with "Workspace error Internal error (signal
  829.    10)" pops up. Other users are not affected.
  830.  
  831.    This scenario occurs with NetBooted clients that are not permitted
  832.    root access to / via the server's /etc/exports file, either via an
  833.    explicit root= option or (the most heinous) anon=0. For security
  834.    reasons many sites will NOT want to permit such access.
  835.  
  836.    Note that what you're up against is only a Workspace Manager
  837.    misfeature; there's no problem logging in as root on the real UNIX
  838.    console, or logging in as a non-root user and then using "su" to
  839.    obtain root privileges.
  840.  
  841.    Root access is needed to:
  842.  
  843.      * Log in a root Workspace.
  844.      * Perform BuildDisk on a client.
  845.      * Run the GuidedTour demo for the first time subsequent invocations
  846.        will not autologin, but they will run just fine if you log in as
  847.        NextTour (no password).
  848.  
  849.  
  850.    It is not required to perform updates on the local NetInfo database,
  851.    for any normal user operations, nor to run programs requiring root
  852.    access on the server using -NXHost.
  853.  
  854. 4.20 How to boot NEXTSTEP from the second (higher SCSI ID) HD?
  855.  
  856.    Boot, from higher SCSI ID Boot, from second drive
  857.  
  858.    Use the following command.
  859.  
  860.  
  861.         bsd(1,0,0) -a
  862.  
  863.  
  864.    which will then ask you for the drive to use as the root disk, or
  865.    still easier,
  866.  
  867.  
  868.         bsd(1,0,0)sdmach rootdev=sd1
  869.  
  870.  
  871.    In the boot command the name of the bootfile can be replaced by '-'.
  872.    This is very useful as the length of the bootcommand which can be
  873.    stored in the permanent memory is very limited (on NeXT machines
  874.    only). So the only way to eg. increase the number of buffers
  875.    permanently to 128 in the boot command is to use the following boot
  876.    command: sd- nbu=128 (sdmach nbu=128 would have been too long).
  877.  
  878. 4.21 How to make swapfile shrink to the normal size?
  879.  
  880.    swapfile
  881.  
  882.    The swapfile is located in /private/vm. The only current way to make
  883.    it shrink is to reboot the machine.
  884.  
  885.    See the man pages for swaptab for more information. Note, that putting
  886.    a space after the comma in /etc/swaptab (lowat=,hiwat=) makes swapon
  887.    ignore the hiwat entry.
  888.  
  889. 4.22 Does netinfo work between machines running NEXTSTEP 2.x and 3.x?
  890.  
  891.    netinfo
  892.  
  893.    Yes.
  894.  
  895. 4.23 Why does the console user "own" the external disk filesystem?
  896.  
  897.    filesystem, external
  898.  
  899.    You need an entry in /etc/fstab so the disk will be mounted at boot
  900.    time, rather than being "automounted" when somebody logs in.
  901.    Automounted disks are owned by whoever logged in, fstab-mounted disks
  902.    are owned by root. Something like this:
  903.  
  904.  
  905.         /dev/sd0a / 4.3 rw,noquota,noauto 0 1
  906.         /dev/sd1a /Disk 4.3 rw,noquota 0 2
  907.  
  908.  
  909.    (assuming the external disk is to be mounted as /Disk)
  910.  
  911.    fstab should be niloaded into the Netinfo database if it contains any
  912.    NFS mounts.
  913.  
  914. 4.24 How to limit coredump sizes?
  915.  
  916.    coredump, size limit
  917.  
  918.    Limit it by the following command.
  919.  
  920.    This will work for apps running from a shell.
  921.  
  922.  
  923.         limit coredumpsize 0
  924.  
  925.  
  926.    If your dock or workspace apps are dumping core, there's also:
  927.  
  928.  
  929.         dwrite Workspace CoreLimit <bytesize>
  930.  
  931.  
  932. 4.25 What is the maximum value of nbuf that I can specify on bootup?
  933.  
  934.    buffers, ROM
  935.  
  936.    I know the ROM monitor only allows twelve characters, but I use
  937.    something like this:
  938.  
  939.  
  940.         bsd sdmach nbuf=xxx
  941.  
  942.  
  943.    (NeXT machines only) Enter the hardware monitor. Hit 'p' to adjust the
  944.    configuration parameters. It will respond: Boot command: ? Enter sd-
  945.    nbu=xxx, where xxx is a number less than 256.
  946.  
  947. 4.26 How can I change the mouse pointer shape and color?
  948.  
  949.    Maybe this could point you into the right direction. Pipe it to pft
  950.    and see what happens....
  951.  
  952.  
  953.         %!PS-Adobe-2.0 EPSF-2.0
  954.         %%BoundingBox: 0 0 16 16
  955.         %%EndComments
  956.         0 0 16 16 Retained window
  957.         dup windowdeviceround
  958.         gsave
  959.         16 16 scale
  960.         16 16 4
  961.         [16 0 0 -16 0 16]
  962.         {<
  963.         ffffffff00000000000000000000000000000000000000000000000000000000
  964.         ffff0d0fffff0000000000000000000000000000000000000000000000000000
  965.         ffff0d0f0d0fffff000000000000000000000000000000000000000000000000
  966.         ffff0d0ffd0f0d0fffff00000000000000000000000000000000000000000000
  967.         fffffd0ffd0ffd0ffd0fffff0000000000000000000000000000000000000000
  968.         fffffd0ff50ff50ff50ffd0fffff000000000000000000000000000000000000
  969.         fffff50ff50ff50ff50ff50ff50fffff00000000000000000000000000000000
  970.         fffff50fd00fd00fd00fd00fd00f908fffff0000000000000000000000000000
  971.         ffffd00fd00fd00fd00fd00fd00f908f908fffff000000000000000000000000
  972.         ffffd00fd00fd00f908f908fffffffffffffffffffff00000000000000000000
  973.         ffff908f908fffff00ff00ffffff000000000000000000000000000000000000
  974.         ffff908fffff0000ffff00ff00ffffff00000000000000000000000000000000
  975.         ffffffff00000000ffff00ff00ffffff00000000000000000000000000000000
  976.         ffff0000000000000000ffff00ff00ffffff0000000000000000000000000000
  977.         00000000000000000000ffff00ff00ffffff0000000000000000000000000000
  978.         000000000000000000000000ffffffff00000000000000000000000000000000
  979.         >} false 3 alphaimage
  980.         grestore
  981.         gstate
  982.         nextdict /_NXSharedGrayAlpha get
  983.         NX_TwelveBitRGB 1 index setwindowdepthlimit
  984.         windowdeviceround
  985.         0 0 16 16 5 4 roll 0 32 Copy composite
  986.         nulldevice
  987.         termwindow
  988.  
  989.  
  990.    Maybe somebody wants to write some kind of "pointer editor"?
  991.  
  992. 4.27 How do I customize BuildDisk to create a bootable disk of my own
  993. configuration?
  994.  
  995.    BuildDisk, customization The BuildDisk application is extremely
  996.    limited in terms of the types of disks configuration it knows how to
  997.    build. Essentially it "knows" about swapdisks, optical disks, 330 and
  998.    660 MB SCSI disks. If you wish to do custom configurations you should
  999.    look at existing BLD script files in /etc/BLD.* There is a script
  1000.    which you can use to specify which BLD script you are using, which
  1001.    disktab entry, and other useful parameters in /usr/etc/builddisk
  1002.  
  1003.    Some things to note:
  1004.      * the fstab installed on the target disk is specified in the
  1005.        newclient command in the BLD script. standard fstabs are extracted
  1006.        from /usr/template/client/fstab.*
  1007.      * the BLD scripts do not put down a new boot block on the scsi disk,
  1008.        you may want to install one by hand using the /usr/etc/disk
  1009.        program.
  1010.      * some disks boot fine but NeXTstep comes up with a blank window and
  1011.        no login window. This is due sometimes to forgetting to install an
  1012.        accessible /NextLibrary/{Fonts,Sounds}. In general you need quite
  1013.        a lot of things to make a bootable disk.
  1014.  
  1015.  
  1016.    You can build a minimally usable bootable floppy (for crash recovery
  1017.    purposes). There is a modified version of builddisk (to make it
  1018.    support building floppies, a minimal change) and a BLD script to build
  1019.    the boot floppy available at cs.orst.edu in
  1020.    next/sources/Bootfloppy.tar.Z. (I put this together in response to
  1021.    several requests.) A newer version of Bootfloppy for 2.1 is on the
  1022.    archives as next/sources/util/Bootfloppy2.1.tar.Z. Also available from
  1023.    the archives is BootFloopy 3.x (for --- you guessed it --- NEXTSTEP
  1024.    3.x). I might also add that one can improve on disk usage while
  1025.    enhancing functionality. BuildDisk (which is used by the various
  1026.    BootFloppy scripts) just copies the standard binaries for ls, mv, cp
  1027.    aso. from /bin. These binaries are statically linked as shipped by
  1028.    NeXT which makes them huge. (e.g. /bin/ls is 106496 bytes large.
  1029.    /usr/local/bin/gls with more features is just 16268 bytes). If you
  1030.    replace these binaries by the BSD or GNU equivalents you can save
  1031.    several hundred kBytes on your boot floppy. This extra diskspace can
  1032.    be used for tar, dump and more tools which makes the boot floppy
  1033.    actually usable. Tested.
  1034.  
  1035. 4.28 Are there any more dwrites useful for the workspace, ...?
  1036.  
  1037.    dwrite, misc
  1038.  
  1039.    There a lot of dwrite useful for you. (self explanatory)
  1040.  
  1041.  
  1042.         dwrite Workspace compress   /usr/bin/gzip
  1043.         dwrite Workspace uncompress /usr/bin/gunzip
  1044.         dwrite Workspace AlwaysTarForCompress Yes
  1045.         dwrite Workspace DockOrginX (some number)
  1046.         dwrite Workspace DockOrginY (some number)
  1047.         dwrite Workspace DockOffsetX -1057 (leftmost)
  1048.         dwrite Workspace DockOnTop (0 or 1 for true or false)
  1049.  
  1050.         dwrite appname NXCMYKAdjust YES
  1051.         dwrite Preferences 24HourClock yes
  1052.  
  1053.  
  1054. 4.29 What is the @LongLink message from gnutar all about?
  1055.  
  1056.    @LongLink gnutar
  1057.  
  1058.    Because gnutar tries to be somewhat compatible to the old tar format,
  1059.    it can't store pathnames longer than 100 chars. In order to store
  1060.    files with longer names, it generates a special file entry containing
  1061.    just the longer filename. These are the long links you see. Nothing to
  1062.    worry about.
  1063.  
  1064. 4.30 What stands the file .place3_0.wmd for?
  1065.  
  1066.    .place3_0.wmd
  1067.  
  1068.    The Workspace uses it to record the window attributes (sort order,
  1069.    view type, icon positions and so on)
  1070.  
  1071.    Switching the 'UNIX Expert' flag in UNIX Preferences panel off hides
  1072.    all files which start by '.'.
  1073.  
  1074. 4.31 How to create transparent icons with IconBuilder
  1075.  
  1076.    IconBuilder icon, transparent
  1077.  
  1078.    If you are repainting an icon on the filesystem e.g. .dir.tiff make a
  1079.    copy and remove it first. Then reload the directory (the default icon
  1080.    gets shown). This is needed because the system caches icons.
  1081.  
  1082.    Now here comes how to create transparent backgrounds using
  1083.    IconBuilder:
  1084.  
  1085.      * Select Format->Document Layout (or New document layout)
  1086.      * 'Has alpha' must be checkedus
  1087.      * Open the color inspector
  1088.      * UNcheck 'paint in overlay mode'
  1089.      * Choose any color (I took white)
  1090.      * Set Opacity to 0
  1091.      * Use Paintbucket to fill the whole icon
  1092.      * Now set Opacity back to 100
  1093.      * Draw the icon
  1094.  
  1095.  
  1096.    What 'Paint in overlay mode does, is that when checked, it will use
  1097.    both the alpha (opacity) of the existing pixel and the alpha selected
  1098.    in the color inspector and combine both into a new color. When
  1099.    unchecked the existing pixel will just be replaced with one using
  1100.    color and alpha as selected in the inspector.
  1101.  
  1102. 4.32 How to access the MAC format of a mixed DOS/MAC CD-ROM
  1103.  
  1104.    Mac DOS CD-ROM
  1105.  
  1106.    Some CD-ROMs are using multiple fileformats to adress more people.
  1107.    This is done by putting two filesystems on the disk. With NEXTSTEP you
  1108.    are able to acess both. But what to do if the Workspace only shows you
  1109.    the DOS side of a disk, while the Mac side is
  1110.  
  1111.    often more convenient (due to e.g. long filenames).
  1112.  
  1113.    The solution is to change the priority the system is searching for a
  1114.    usable filesystem. You need to rearange the filesystems in
  1115.    /usr/filesystems to fit your needs. Here is how:
  1116.  
  1117.      * ls -lR /usr/filesystems shows the actual searching queue.
  1118.      * mv /usr/filesystems /tmp/filesystems to backup things
  1119.      * mkdir /usr/filesystems recreate the directory.
  1120.      * cp -p -r /tmp/filesystems/xx /usr/filesystems copy the filesystems
  1121.        in order of searching back to the default location.
  1122.      * chmod 4755 /usr/filesystems/xx.fs/xx.util reset SUID mode
  1123.      * reset the links in /usr/filesystems/DOS.fs/.
  1124.  
  1125.  
  1126. 4.33 Is there a PPP for NEXTSTEP
  1127.  
  1128.    PPP
  1129.  
  1130.    There is a commercial PPP and a public domain PPP implementation.
  1131.  
  1132.    For the public domain PPP there is an additional FAQ available at:
  1133.    http://www.thoughtport.com:8080/PPP/
  1134.  
  1135.    The public domain PPP is based on the PPP-2.2 distribution. This
  1136.    distribution offers several enhancements over ppp-2.1.2. Especially
  1137.    noteworty is that it implements BSD packet compression. Using packet
  1138.    compression can lead to higher throughput than you get using
  1139.    compressing modems.
  1140.  
  1141.    The port works on Motorola, Intel (both Mux and NeXT supplied serial
  1142.    drivers), and HP systems running OS 3.2 and 3.3. It also works in
  1143.    conjunction with Black and White's NXFAX software.
  1144.  
  1145.    You may also want to join the mailing list for PPP. This will keep you
  1146.    informed of new releases and will provide an arena for discussing
  1147.    problems with the NeXT specific PPP port. To add yourself to the list
  1148.    (or for any other administrative requests), send an email message to:
  1149.    listproc@listproc.thoughtport.com requesting you be placed on the
  1150.    list. Make sure to include your proper return email address. To send
  1151.    mail to all the participants on the list, address your messages to:
  1152.    nextppp@listproc.thoughtport.com
  1153.      _________________________________________________________________
  1154.  
  1155.      * (weiter mit 5 Black (NeXT) hardware)
  1156.  
  1157.  
  1158.      _________________________________________________________________
  1159.  
  1160.    This document was converted from LaTeX using Karl Ewald's latex2html.